﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AspNetCs.Bll;
using AspNetCs.Model;
using AspNetCs.Common;
using AspNetCs.Config;
using System.Data;
using System.Data.SqlClient;
using AspNetCs.Enumerations;

public partial class Master_Admin_ManageReciveMessage : Admin_BasePage
{
    protected City city = new City();
    MessageBLL bll = Message_BLL.CreateNew;
    protected void Page_Load(object sender, EventArgs e)
    {
        IsExit();
        if (!IsPostBack)
        {
            dataBind();
        }

    }
    protected void dataBind()
    {
        string cmdText = "select *,CreateName=(select UserName from Users where Userid=SenderId) from Message where IsDel=0 and ReciverIsMaster=1 order by id desc";
        AspNetCs.Common.DataPagesOperate operate = new DataPagesOperate();

        operate.BindRepeater(cmdText, AspNetPager1, "id desc", "id", rptNetMuList);


    }


    protected void rptNetMuList_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
    }

    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        dataBind();
    }
}
